import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

public class home1 {
    public static void main(String[] args) throws IOException {
        Properties ties = new Properties();
       ties.setProperty("brand", "Iphone11Pro Max");
       ties.setProperty("capacity", "256G");
        ties.setProperty("price", "10899");
        ties.store(new FileWriter("homewoek11\\src\\iphone.properties"),"手机种类");

    }
}
